package com.greedy.bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Author: Yanxy
 * @Date: Created in:2022-12-24
 * Description: 秒杀优惠券
 */
@Data
@Accessors(chain = true)
public class SeckillVoucher implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关联的优惠券的id
     */
    @JSONField(name = "VOUCHER_ID")
    private Long voucherId;

    /**
     * 库存
     */
    @JSONField(name = "STOCK")
    private Integer stock;

    /**
     * 创建时间
     */
    @JSONField(name = "CREATE_TIME")
    private Timestamp createTime;

    /**
     * 生效时间
     */
    @JSONField(name = "BEGIN_TIME")
    private Timestamp beginTime;

    /**
     * 失效时间
     */
    @JSONField(name = "END_TIME")
    private Timestamp endTime;

    /**
     * 更新时间
     */
    @JSONField(name = "UPDATE_TIME")
    private Timestamp updateTime;


}
